<template>
    <div>
        <h3 class="xinming">姓名:{{username}}</h3>
        <h3>年龄:{{age}}</h3>
    </div>
</template>

<script>
export default {
    name:'User',
    data(){
        return {
            username:'tom',
            age:19
        }
    }
}
</script>

<style>
   .xinming{
        color:deeppink
    }
</style>